package org.demo.spring.ioc.service.impl;

import org.demo.spring.ioc.service.Dog;
import org.demo.spring.ioc.service.ISturdentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentServiceImpl implements ISturdentService{

    @Autowired
    private Dog dog;


    public void study() {
        System.out.println(dog.getName()+"学习。。。。");
    }
}
